#!/bin/bash

while read line; do
   asm=$(echo $line | sed -e "s/\.\.\/\.\.\/src\///g" -e "s/\.c$/\.ll/g")
   echo $asm
   filename=$(echo $line | tr " " "_" | tr "/" "_" )
   ./detectloop.sh $line $asm > loops/$filename.results 2>loops/$filename.stderr
done < filelist
